<!DOCTYPE html>
<html>
<head>
    <title>${comments}</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("devplangcrecord:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:delete"))
                <i-button type="info" @click="assign"><i class="fa fa-plus"></i>&nbsp;分派</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:delete"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;催办</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:delete"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;申请变更</i-button>
                #end
                #if($shiro.hasPermission("devplangcrecord:delete"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;异常</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devPlanGcRecord" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="是否删除 0已删除 1未删除" prop="delFlag">
                        <i-input v-model="devPlanGcRecord.delFlag" placeholder="是否删除 0已删除 1未删除"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="创建时间" prop="createDate">
                        <i-input v-model="devPlanGcRecord.createDate" placeholder="创建时间"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="延期备注" prop="remark">
                        <i-input v-model="devPlanGcRecord.remark" placeholder="延期备注"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="是否执行 0未执行 1已执行 2已延期 3未执行" prop="checkFlag">
                        <i-input v-model="devPlanGcRecord.checkFlag" placeholder="是否执行 0未执行 1已执行 2已延期 3未执行"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="操作时间 精确到时分秒" prop="authorDate">
                        <i-input v-model="devPlanGcRecord.authorDate" placeholder="操作时间 精确到时分秒"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="操作人" prop="author">
                        <i-input v-model="devPlanGcRecord.author" placeholder="操作人"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="规程关联选项ID" prop="relDevPlan">
                        <i-input v-model="devPlanGcRecord.relDevPlan" placeholder="规程关联选项ID"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>


    <div id="select" style="display: none">
        <i-form>
            <Form-item label="维护人员" prop="author">
                <i-col span="11">
                    <i-select v-model="devPlanGcRecord.author" class="form-input">
                        <i-option v-for="item in repairUserList" :value="item.userId" :key="item.userId">
                            {{item.userName}}
                        </i-option>
                    </i-select>
                </i-col>
            </Form-item>
        </i-form>
    </div>
</div>
</div>

<script src="${rc.contextPath}/js/device/devplangcrecord.js?_${date.systemTime}"></script>
</body>
</html>
